import App from './App'

import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';

import * as vant from 'vant';
import 'vant/lib/index.css';

import notebook from '@/components/notebook/notebook.vue'
import cloudFile from '@/components/cloud-file/cloud-file.vue'

export function createApp() {
  const app = createSSRApp(App)
	app.use(Pinia.createPinia());
	app.use(vant)
	app.component('notebook',notebook)
	app.component('cloudFile',cloudFile)
  return {
    app,
		Pinia
  }
}